import server from "@/utils/request";
// 学校统计

// /school/getSchoolById/{id}
export function school_getSchoolByPage(payload = {}) {
    return server.get('/school/school/getSchoolByPage', { params: payload })
}
//新建学校
export function school_saveSchool(payload: { name: any, sSystem: any, area: any, areaDetail: any, phone: any }) {
    return server.post(`/school/school/saveSchool?name=${payload.name}&sSystem=${payload.sSystem}&area=${payload.area}&areaDetail=${payload.areaDetail}&phone=${payload.phone}`)
}
// 删除学校
export function school_deleteSchool(id: any) {
    return server.delete('/school/school/deleteSchool/' + id)
}